@extends('layout.index');
@section('title', '分类添加');
@section('content')
     <div class="row">
                <div class="col-lg-12">
                    <h1 class="page-header">分类添加</h1>
                </div>
                <!-- /.col-lg-12 -->
 		</div>
 		<div class="row">
                <div class="col-lg-4">
				<!-- 表单验证 错误提示位置 -->
		         @if (count($errors) > 0)
                                 <div class="alert alert-danger alert-dismissable">
                                     <button aria-hidden="true" data-dismiss="alert" class="close" type="button">×</button>
                        <ul>
                            @foreach ($errors->all() as $error)
                                <li>{{ $error }}</li>
                            @endforeach
                        </ul>
                                 </div>
                  @endif
                    <form role="form" action="/admin/class/insert" method="post" enctype="multipart/form-data">
                        <div class="form-group">
                            <label>商品种类</label>
                            <input class="form-control" name="classname" value="{{old('classname')}}" type="text">
                            <p class="help-block"></p> 
                        </div>
                        
                       <button class="btn btn-info" type="submit">提交</button>
                       <button class="btn btn-info" type="reset">重置</button>
                       {{csrf_field()}}
                    </form>
                </div>
                                <!-- /.col-lg-6 (nested) -->
       </div> 
@endsection

